using System;
using System.Web.UI;
using Framework.Module.Logging.Lib;
using Framework.Library.Utilities;

namespace Framework.Module.Logging
{
    public partial class LogCounter : Page
    {
        private string counterkey;
        private int counterid = 0, countervalue = 1;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
            counterkey = Convert.ToString(Request.QueryString["key"]);
            counterid = ConvertUtility.ToInt32(Request.QueryString["id"]);
            countervalue = Convert.ToInt32(Request.QueryString["value"]);

            LogDB.UpdateLog(counterkey, countervalue, counterid);
        }
    }
}
